{block content}
<div class="col-md-offset-2 col-md-8">
  <div class="content-box user-box row">
    <h1>Změna údajů - {$userData->getLogin()}</h1>
    {form changeUserInfoForm}
      <ul class="errors" n:if="$form->hasErrors()">
        <li n:foreach="$form->errors as $error">{$error}</li>
      </ul>

      
      <div class="col-sm-4">
        {if $userData->getPhoto() != "" && $userData->getPhoto() != NULL}
          <img src="{$basePath}/content/users/{$userData->getPhoto()}/image.jpg" width="200" height="200">
        {else}
          <img src="{$basePath}/www/images/user-photo.jpg" width="200" height="200">
        {/if}
        <br>
        <br>
        <div class="form form-row">
          {label photo class=>array(form, form-label) /}
          {input photo class=>array(form, form-text-input)}
        </div>
        <br>
      </div>
      
      <div class="col-sm-8">
        <div class="form form-row">
          {label email class=>array(form, form-label) /}
          {input email class=>array(form, form-text-input)}
        </div>


        <div class="form form-row">
          {label age class=>array(form, form-label) /}
          {input age class=>array(form, form-text-input)}
        </div>

        <div class="form form-row">
          {label from class=>array(form, form-label)/}
          {input from class=>array(form, form-text-input)}
        </div>
        
        <div class="form form-row">
          {label level class=>array(form, form-label)/}
          {input level class=>array(form, form-text-input)}
        </div>

        <div class="form form-row">
          {label gender class=>array(form, form-label)/}
          {input gender class=>array(form, form-text-input)}
        </div>
      </div>
        
      <div class="col-sm-12">
        <div class="form form-row">
          {label gear class=>array(form, form-label)/}
          {input gear class=>array(form, form-text-area)}
        </div>

        <div class="form form-row">
          {label about class=>array(form, form-label)/}
          {input about class=>array(form, form-text-area)}
        </div>
        
        <div class="button-row center">
          {input send class=>array(button, standard)}
          &nbsp;&nbsp;
          <a class="button standard" style="margin-top: 15px;" n:href="User:detail userId=>$userData->getId()">zpět</a>
        </div>
      </div>
    {/form} 
  </div>
  <br>
  <br>
</div>
{/block}